<?php
/*
 * Created on May 14, 2009
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
  $this->load->view('admin/tcategory/link_bar');
?>
<form action="<?php echo base_url();?>admin/tcategory/save" method="post" enctype="multipart/form-data">
<div class="box_function">
		<table width="747" border="0" cellpadding="0" cellspacing="0" class="listproduct" id="listproduct">
		<tr>
			<td colspan="2" style="padding:5px">
<h1>
<?php echo $legend_text?>
</h1>
<?php echo $error_message?>

		</td>
	 </tr>
	
	<tr>
		<td style="padding:5px">
		<?php echo lang('category_code')?> 
		</td>
		<td>
		<input type="text" class="text" name="txtCode" id="txtCode" value="<?php echo $code?>" style="width: 150px;" maxlength="60" /> <?php echo lang('invalid_characters')?>
		</td>
	</tr>
	<tr>
		<td style="padding:5px"><?php echo lang('category_parent')?></td>
		<td>
		<?php echo $ddlPatentCategory?>
		</td>
	</tr>
	<tr>
		<td style="padding:5px"><?php echo $this->lang->line('vi_name')?></td>
		<td>
		<input type="text" style="width: 260px; height:20px" class="text" name="txtViName" id="txtViName" value="<?php echo $vi_name?>" maxlength="100" />
		</td>
	</tr>
	<tr>
		<td style="padding:5px"><?php echo lang('en_name')?></td>
		<td>
		<input type="text" style="width: 260px; height:20px" class="text" name="txtEnName" id="txtEnName" value="<?php echo $en_name?>" maxlength="100" />
		</td>
	</tr>
	<tr>
		<td style="padding:5px"><?php echo lang('vi_description')?></td>
		<td>
		<textarea name="txtViDescription" id="txtViDescription" rows="5" cols="50" wrap="off"><?php echo $vi_description?></textarea>
		</td>
	</tr>
	<tr>
		<td style="padding:5px"><?php echo lang('en_description')?></td>
		<td>
		<textarea name="txtEnDescription" id="txtEnDescription" rows="5" cols="50" wrap="off"><?php echo $en_description?></textarea>
		</td>
	</tr>
	<tr>
		<td style="padding:5px"><?php echo lang('friendly_url')?></td>
		<td>
		<input type="text" style="width: 160px; height:20px" class="text" name="txtLinkRewrite" id="txtLinkRewrite" value="<?php echo $link_rewrite?>" maxlength="200" />
		</td>
	</tr>
	<tr>
		<td style="padding:5px"><?php echo lang('meta_title')?></td>
		<td>
		<input type="text" style="width: 160px; height:20px" class="text" name="txtMetaTitle" id="txtMetaTitle" value="<?php echo $meta_title?>" maxlength="200" />
		</td>
	</tr>
	<tr>
		<td style="padding:5px"><?php echo lang('meta_keywords')?></td>
		<td>
		<input type="text" style="width: 160px; height:20px" class="text" name="txtMetaKeywords" id="txtMetaKeywords" value="<?php echo $meta_keywords?>" maxlength="200" />
		</td>
	</tr>
	<tr>
		<td style="padding:5px"><?php echo lang('meta_description')?></td>
		<td>
		<input type="text" style="width: 160px; height:20px" class="text" name="txtMetaDescription" id="txtMetaDescription" value="<?php echo $meta_description?>" maxlength="200" />
		</td>
	</tr>
	<tr>
		<td style="padding:5px"><?php echo lang('active')?></td>
		<td>
		<input type="checkbox" class="checkbox" <?php echo $active==1? 'checked' : ''?> name="active" value="1" />
		</td>
	</tr>
		
	<tr>
		<td>Image</td>
		<td> 
		<input type="file" name="file" />
 		</td>
	</tr>
	
	<tr>
		<td></td>
		<td> 
		<?php echo lang('indicates_a_required_field');?>
 		</td>
	</tr>
	
	<tr>
		<td style="padding:5px" colspan="2">
		<p> <input type="submit" class="submit button" name="btSave" value="<?php echo lang('save')?>" /> </p>
		</td>
	</tr>
</table>
</div>
<input type="hidden" name="txtID" id="txtID" value="{id}"/>

</form>
